package com.zhss.massivedata.order.mapper;

import com.zhss.massivedata.order.domain.OrderInfo;
import com.zhss.massivedata.order.domain.OrderItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderMapper {

    void insertOrderInfo(OrderInfo orderInfo);

    void updateOrderStatus(
            @Param("orderInfoId") long orderInfoId,
            @Param("orderStatus") int orderStatus);

    void insertOrderItems(List<OrderItem> orderItems);

    List<OrderItem> selectItemsByOrderInfoId(
            @Param(("orderInfoId")) long orderInfoId);

}
